package me.zhengjie.modules.enrstu.service.mapstruct;

import me.zhengjie.base.BaseMapper;
import me.zhengjie.modules.enrstu.service.dto.SchoolDto;
import me.zhengjie.modules.enrstu.domain.School;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

/**
 * @website https://eladmin.vip
 * @author yyx
 * @date 2024-10-14
 **/
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SchoolMapper extends BaseMapper<SchoolDto, School> {

    SchoolDto toDto(School entity);

    List<SchoolDto> toDto(List<School> entityList);
}